package com.qf.scms.node;

import lombok.Data;
import org.springframework.data.neo4j.core.schema.Id;
import org.springframework.data.neo4j.core.schema.Node;
import org.springframework.data.neo4j.core.schema.Relationship;

import java.util.ArrayList;
import java.util.List;

/**
 * @Classname UserNode
 * @Description TODO
 * @Date 2025-05-27 10:59
 * @Created by 老任与码
 */
@Data
@Node("User")
public class UserNode {

    @Id
    private Long id;

    private String name;

    @Relationship(type = "INVITE", direction = Relationship.Direction.OUTGOING)
    private List<InviteShip> inviteShips = new ArrayList<>();
}
